package com.zgjkhis.modules.system.service;

import com.zgjkhis.common.service.BaseService;
import com.zgjkhis.modules.charges.service.dto.InfoDto;
import com.zgjkhis.modules.his.service.dto.DataPrescription;
import com.zgjkhis.modules.his.service.dto.DataPrescriptionDetail;
import com.zgjkhis.modules.system.domain.Info;
import com.zgjkhis.modules.system.domain.vo.InfoMarketHomeSaleVo;
import com.zgjkhis.modules.system.domain.vo.InfoMarketTopSaleVo;
import com.zgjkhis.modules.system.domain.vo.InfoSaleVo;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author yzq
 * @Description 处方
 * @Date 2021/6/23 9:45
 * @Param
 * @return
 **/
public interface InfoService extends BaseService<Info>{

    List<DataPrescription> queryDataList();

    List<DataPrescriptionDetail> queryDataDetailList(String id, BigDecimal quantityDay);

    List<InfoDto> queryListByOrderNo(String orderNo);

    List<DataPrescription> queryInfoByOrderNo(String orderNo);

    List<InfoSaleVo> infoStatistics(String pharmacyId, String startDate, String endDate, String docName,String historyType);

    InfoMarketHomeSaleVo infoSalesDate(String pharmacyId, String startDate, String endDate,String historyType);

    InfoMarketTopSaleVo infoMarketTop(String pharmacyId);

    void dayPigeonhole(String date);

    void outInfoSalesDoc(String pharmacyId,String startTime, String endTime,String docName,String historyType, HttpServletResponse response) throws IOException;

    void outInfoSalesDate(String pharmacyId,String startTime, String endTime,String docName,String historyType, HttpServletResponse response) throws IOException;

}
